/**
 * Created by Salted fish
 * Description:
 * User: 24539
 * Date：2021-08-06
 * Time: 21:04
 */
 public class Test1 {
    public static void main(String[] args) {
        MyLinkedList myLinkedList= new MyLinkedList();
      //  myLinkedList.createList();//穷举
        myLinkedList.addFirst(13);
        myLinkedList.addFirst(5);
        myLinkedList.addFirst(9);
        myLinkedList.addFirst(11);
        myLinkedList.addFirst(22);
        //用头插法来创建一个单链表  单向 不循环
        myLinkedList.addLast(3);
        myLinkedList.display();
        System.out.println(myLinkedList.size());
        System.out.println(myLinkedList.contains(5));
        myLinkedList.removeAllKey(9);
        myLinkedList.display();
        System.out.println("=============");
        myLinkedList.clear();
        myLinkedList.display();
    }
}

